export default {
  count(state) {
    return state.todoList.length
  },
  leftTodos(state) {
    return state.todoList.filter((item) => !item.done).length
  },
  isShowClearCompleted(state) {
    return state.todoList.some((item) => item.done) && state.showState !== 1
  },
}
